home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
du.arc
/
UNSHAR.HEA
< prev
Wrap
Internet Message Format
|
1990-10-05
|
2KB
From comp.sources.misc Fri Sep 28 13:01:48 1990
Path: csource!munnari.oz.au!uunet!allbery
From: chip@chinacat.Unicom.COM (Chip Rosenthal)
Newsgroups: comp.sources.misc
Subject: v14i088: enhanced du (disk usage) plus USENET stats script
Message-ID: <104990@uunet.UU.NET>
Date: 16 Sep 90 01:01:33 GMT
Sender: allbery@uunet.UU.NET
Organization: Unicom Systems Development, Austin, TX
Lines: 1621
Approved: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
X-UNIX-From: chinacat!chip
Posting-number: Volume 14, Issue 88
Submitted-by: chip@chinacat.Unicom.COM (Chip Rosenthal)
Archive-name: enh-du/part01
I mentioned over in news.software.b that I have a script which generates
USENET disk usage and readership reports. I posted the following example
of its output:
+---------------------------------------------------------------------------
| newsgroup read 0days 1days 3days 5days 7days 15days
| rec.arts.movies 1 1070 550 4 4 4 4
| rec.arts.sf-lovers 1 846 544 30 0 0 0
| news.groups 1 834 198 0 0 0 0
| news.lists 1 732 58 0 0 0 0
| news.announce.newusers 3 700 0 0 0 0 0
+---------------------------------------------------------------------------
The guts behind this report is an enhanced version of "du". The du
enhancement was originally started to add some badly desired features.
For example, I always wanted a way to tell du not to accumulate the usage
of ./alt/sources/d into ./alt.sources.
An unexpected result was that even after throwing in these features, this
implementation ran significantly faster the other du's I compared it
against. Even more surprising, I found other du's reporting wrong results.
In particular, they botched the "indirect block" calculations on large
files.
This program uses the statfs() call, which I believe limits it to
System V Release 2 systems, compatible implementations, and descendants.
It has been tested on ISC UNIX 2.0.2 and SCO XENIX 386 2.3.